package com.wyz.serviceImpl;

import com.wyz.entity.Grades;
import com.wyz.mapper.GradesMapper;
import com.wyz.service.GradesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GradesServiceImpl implements GradesService {
    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    GradesMapper gradesMapper;
    @Override
    public Grades findById(int id) {
        return gradesMapper.findById(id);
    }

    @Override
    public List<Grades> findAll() {
        return gradesMapper.findAll();
    }
}
